home *** CD-ROM | disk | FTP | other *** search
/ ftp.cs.arizona.edu / ftp.cs.arizona.edu.tar / ftp.cs.arizona.edu / icon / newsgrp / group98b.txt / 000003_icon-group-sender _Mon Apr 27 08:10:50 1998.msg < prev    next >
Internet Message Format  |  2000-09-20  |  2KB

  1. Return-Path: <icon-group-sender>
  2. Received: from kingfisher.CS.Arizona.EDU (kingfisher.CS.Arizona.EDU [192.12.69.239])
  3.     by baskerville.CS.Arizona.EDU (8.8.8/8.8.7) with SMTP id IAA18221
  4.     for <icon-group-addresses@baskerville.CS.Arizona.EDU>; Mon, 27 Apr 1998 08:10:50 -0700 (MST)
  5. Received: by kingfisher.CS.Arizona.EDU (5.65v4.0/1.1.8.2/08Nov94-0446PM)
  6.     id AA07008; Mon, 27 Apr 1998 08:10:47 -0700
  7. From: Otfried Geffert <og@stardivision.de>
  8. Date: Mon, 27 Apr 1998 08:51:20 GMT
  9. Message-Id: <19980427.8512058@og-1042.stardiv.de>
  10. Subject: Re: Using icon pipe features
  11. To: Derek Paul Freeman-Jones <dpfj@globalnet.co.uk>
  12. Cc: icon-group@optima.CS.Arizona.EDU
  13. In-Reply-To: <353F9415.83BD5C5B@globalnet.co.uk>
  14. References: <353F9415.83BD5C5B@globalnet.co.uk>
  15. X-Mailer: Mozilla/3.0 (compatible; StarOffice/4.0; WinNT/Win95)
  16. X-Priority: 3 (Normal)
  17. Mime-Version: 1.0
  18. Content-Type: text/plain; charset=ISO-8859-1
  19. Content-Transfer-Encoding: quoted-printable
  20. Errors-To: icon-group-errors@optima.CS.Arizona.EDU
  21. Status: RO
  22. Content-Length: 966
  23.  
  24. As I think a _pipe_ is a unidirectional thing.
  25. So I think you can't open it for reading and writing from the
  26. same process.
  27.  
  28. For a similar problem I used:
  29. - opened the real file for reading
  30. - wrote the processed file to a temporary file
  31. - renamed the temporary file to the real filename
  32.  
  33. Sorry, I see this is not what you wanted.
  34.  
  35. Otfried
  36.  
  37. >>>>>>>>>>>>>>>>>><<<<<<<<<<<<<<<<<<
  38.  
  39. Derek Paul Freeman-Jones <dpfj@globalnet.co.uk> on Using icon pipe=20
  40. features:
  41.  
  42. > icon-group,
  43. >=20
  44. > I need to extend the functionality of the procedure 'open' when=20
  45. running
  46. > a process eg.
  47. >=20
  48. > pipe_in :=3D open ( "/usr/bin/ls", "p" )
  49. >=20
  50. > at present the process can only be opened for reading OR writing. Has=
  51.  
  52. > anyone done any development work on enabling the process to be BOTH
  53. > written to and read from?
  54. >=20
  55. > I don't if I have to write a new procedure to plug in to Icon 'popen'=
  56.  
  57. > for example.
  58. >=20
  59. > Many thanks in advance.
  60. >=20
  61. >=20
  62. > Derek Freeman-Jones
  63. >=20
  64. >=20
  65.  
  66.  
  67.  
  68.